﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GeckoPhotos.Models
{
    public partial class Message
    {

        public string GetTextParsed()
        {
            if (Text == null)
                return string.Empty;

            // The string formatting for messages work as such - each object index represents
            //  a particular property of the Message object, as such:
            //   0: InstigatorUser.DisplayName
            //   <extend as required>
            return string.Format(
                Text, 
                InstigatorUser.DisplayName
                );
        }

    }
}